package com.allwees.bs.module.ics.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.neovisionaries.i18n.CountryCode;
import com.allwees.bs.core.model.util.PhotosStr;
import com.allwees.bs.core.modelbase.entity.BaseEntity;
import com.allwees.bs.module.ics.constant.EGender;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.EnumTypeHandler;

import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;

/**
 * 网红
 *
 * @author yangylsky
 * @since 2020-05-15
 *
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("ics_internet_celebrity")
public class InternetCelebrity extends BaseEntity implements PhotosStr {
	/**
	 * 操作人UUID
	 */
    @Column(length = 48)
	protected String opUuid;

    @Column(length = 128)
    protected String name;

    @Column(length = 128)
    protected String email;

    @Column(length = 20)
    protected String mobile;

    protected EGender gender;

    @TableField(typeHandler = EnumTypeHandler.class)
    protected CountryCode countryCode;

    protected String tagsStr;

    @Column(length = 512)
    protected String nicheUuids;

    @Column(length = 512)
    protected String nichesStr;

    @Column(length = 1024)
    protected String photosStr;

    @Temporal(TemporalType.DATE)
    protected Date lastUpdate;
}
